package com.yic.module.base.controller.admin.item.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;
import java.util.*;
import java.time.LocalDateTime;
import java.time.LocalDateTime;
import javax.validation.constraints.*;

/**
 * 产品通用信息 Base VO，提供给添加、修改、详细的子 VO 使用
 * 如果子 VO 存在差异的字段，请不要添加到这里，影响 Swagger 文档生成
 */
@Data
public class ItemBaseVO {

    @Schema(description = "产品名称", requiredMode = Schema.RequiredMode.REQUIRED, example = "赵六")
    @NotNull(message = "产品名称不能为空")
    private String name;

    @Schema(description = "产品编号", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotNull(message = "产品编号不能为空")
    private String code;

    @Schema(description = "规格")
    private String spec;

    @Schema(description = "图号")
    private String drawCode;

    @Schema(description = "产品描述", example = "随便")
    private String remark;

    @Schema(description = "状态", requiredMode = Schema.RequiredMode.REQUIRED, example = "2")
    @NotNull(message = "状态不能为空")
    private Integer status;

    @Schema(description = "单位ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "23976")
    @NotNull(message = "单位ID不能为空")
    private Long unitId;

    @Schema(description = "分类ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "8340")
    @NotNull(message = "分类ID不能为空")
    private Long categoryId;

}
